model button: Small fixes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 5 Jun 2019 19:33:43 +0000 (19:33 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Jun 2019 17:38:53 +0000 (17:38 +0000)
Make iconic model buttons work better.

gtk/gtkmodelbutton.c

index 16cf8b1c75fb05f305c4889d912550eec7f40929..25dbbe67486ed19e2a44059f5a3aa251eeb0c1cd 100644 (file)
@@ -370,6 +370,8 @@ update_visibility (GtkModelButton *button)
 
   gtk_widget_set_visible (button->image, has_icon && (button->iconic || !has_text));
   gtk_widget_set_visible (button->label, has_text && (!button->iconic || !has_icon));
+  gtk_widget_set_hexpand (button->image, has_icon && !has_text);
+  gtk_widget_set_hexpand (button->box, FALSE);
 }
 
 static void